import request from '@/utils/request'

// 查询视频号小店一键发货列表
export function listSphxdSend(query) {
  return request({
    url: '/media/sphxdSend/list',
    method: 'get',
    params: query
  })
}

// 查询视频号小店一键发货详细
export function getSphxdSend(id) {
  return request({
    url: '/media/sphxdSend/' + id,
    method: 'get'
  })
}


// 订单一键发货
export function sendOutGood(data) {
  return request({
    url: '/media/sphxdSend/sendOutGood',
    method: 'post',
    data: data
  })
}



// 查询视频号小店一键发货详细
export function getOrderList(data) {
  return request({
    url: '/media/sphxdSend/getOrderList',
    method: 'post',
    data:data
  })
}



// 新增视频号小店一键发货
export function addSphxdSend(data) {
  return request({
    url: '/media/sphxdSend',
    method: 'post',
    data: data
  })
}

// 修改视频号小店一键发货
export function updateSphxdSend(data) {
  return request({
    url: '/media/sphxdSend',
    method: 'put',
    data: data
  })
}

// 删除视频号小店一键发货
export function delSphxdSend() {
  return request({
    url: '/media/sphxdSend/deleteAll',
    method: 'delete'
  })
}
